package cn.tedu.em.common.pojo.car.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class CarAddNewDTO implements Serializable {

    /**
     * 车牌号
     */
    @ApiModelProperty(value = "车牌号", required = true, example = "李翔宇")
    @NotNull(message = "添加车牌号失败，必须提交车牌号！")
    private String carNum;
    /**
     * 车位id
     */
    @ApiModelProperty(value = "车位id", required = true, example = "李翔宇")
    @NotNull(message = "添加车位失败，必须提交车位！")
    private Long locationId;
    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id", required = true, example = "李翔宇")
    @NotNull(message = "添加用户id失败，必须提交用户id！")
    private Long userId;

}
